﻿using System.Collections.Generic;
using Isaac.Joy.Identity.Module;

namespace Isaac.Joy.Identity.Web.DtCms.Models
{
    public class RoleViewModel
    {
        /// <summary>
        /// 角色信息
        /// </summary>
        public Role Role { get; set; }

        /// <summary>
        /// 权限列表
        /// </summary>
        public Dictionary<string, IEnumerable<Permission>> Permissions { get; set; }

        /// <summary>
        /// 权限值（用于controller接收页面提交数据时使用）
        /// </summary>
        public string RoleValue { get; set; }
    }
}